package cn.hnu.qq.entity.message;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import cn.hnu.qq.global.MessageType;

public class DownLoadFileMessage extends Message {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String selectedFile;

	private String acount;
	
	public String getAcount() {
		return acount;
	}

	public void setAcount(String acount) {
		this.acount = acount;
	}

	private List<String> files = new ArrayList<String>();
	
	private List<String> path = new ArrayList<String>();
	private String addr;
	private int port;
	
	public DownLoadFileMessage() {
		setMessageType(MessageType.DOWNLOAD_FILE);
	}

	public String getSelectedFile() {
		return selectedFile;
	}

	public void setSelectedFile(String selectedFile) {
		this.selectedFile = selectedFile;
	}

	public List<String> getFiles() {
		return files;
	}

	public void setFiles(List<String> files) {
		this.files = files;
	}

	public List<String> getPath() {
		return path;
	}

	public void setPath(List<String> path) {
		this.path = path;
	}

	public void addFile(File file) {
		files.add(file.getName());
		path.add(file.getAbsolutePath());
	}

	public String getAddr() {
		return addr;
	}

	public int getPort() {
		return port;
//		return 0;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public void setPort(int port) {
		this.port = port;
	}
	
}
